package com.ysd.lis.entity.lab;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysd.lis.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

/**
 * <p>
 * 设备管理-设备类型
 * </p>
 *
 * @author prs
 * @since 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("LAB_FINANCE_SETTLE")
public class LabFinanceSettle extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 单据号
     */
    @TableField("SETTLE_NO")
    private String settleNo;


    /**
     * 送检单位编码
     */
    @TableField("COMPANY_CODE")
    private String companyCode;

    /**
     * 送检单位名称
     */
    @TableField("COMPANY_NAME")
    private String companyName;
    /**
     * 销售人员CODE
     */
    @TableField("SALESMAN_CODE")
    private String salesmanCode;

    /**
     * 销售人员名称
     */
    @TableField("SALESMAN_NAME")
    private String salesmanName;

    /**
     * 单据类型
     */
    @TableField("SETTLE_TYPE")
    private String settleType;
    /**
     * 费用合计
     */
    @TableField("COSTS")
    private Double costs;
    /**
     * 实际收费
     */
    @TableField("REAL_COSTS")
    private Double realCosts;

    /**
     * 销售提成金额
     */
    @TableField("BROKERAGE_COSTS")
    private Double brokerageCosts;

    @TableField("SETTLE_STATUS")
    private String settleStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.UPDATE)
    private Timestamp settleDate;

    /**
     * 序号
     */
    @TableField("SEQ")
    private Integer seq;

}
